package org.cogate.thrift.server.serviceImpl;

import org.apache.thrift.TException;

import com.cupdata.thrift.zicon.interfaces.UserDto;
import com.cupdata.thrift.zicon.interfaces.UserService;
import com.cupdata.zicon.annotation.ThriftController;

@ThriftController("userService")
public class UserServiceImpl implements UserService.Iface{

	public UserDto getUser() throws TException
	  {		
		UserDto user = new UserDto(1000,"david");
		return user;
	  }

	/* (non-Javadoc)
	 * @see cloud.simple.interfaces.UserService.Iface#sayName(java.lang.String)
	 */
	public String sayName(String name) throws TException {
		return "Hi User-1 " + name +"...";
	}

}
